package com.example.MyThread.ThreadTest02;

/**
 * @author Jason
 * @PACKAGE_NAME com.example.MyThread.ThreadTest02
 * @Description
 * @date 2023-12-10 18:38
 */
public class MyRun implements Runnable {
    @Override
    public void run() {
        //功能代码
        for (int i = 0; i < 100; i++) {
            //获取当前线程的对象
            Thread t = Thread.currentThread();
            System.out.println(t.getName() + "你好" + i);
        }
    }
}
